package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Menu;

import java.util.List;
import java.util.Map;

/**
 * @Program: health_parent
 * @Description:
 * @Author: choulan
 * @Date:2020-11-27 16:25
 **/
public interface MenuService {
    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);
    //查找所有的菜单信息
    public List<Menu> findParentMenuIds();
    //删除菜单
    public void delete(Integer id);
    //添加一个菜单
    public void add(Menu menu);
    //修改菜单
    public void edit(Menu menu);
    //根据菜单id获取菜单数据，有父菜单的
    public Menu findById(Integer id);
    //根据子菜单id查询父菜单信息
    public String  findParentMenuId(Integer childrenId);
    //查询菜单信息
    Menu findMenuById(Integer id);
    //校验菜单名重复与否
    public boolean checkName(String name);
}
